package com.nmsl.masterdocker.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nmsl.masterdocker.mapper.DiseaseRecordLogMapper;
import com.nmsl.masterdocker.domain.DiseaseRecordLog;
import com.nmsl.masterdocker.service.IDiseaseRecordLogService;

/**
 * 病人病情记录日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
@Service
public class DiseaseRecordLogServiceImpl implements IDiseaseRecordLogService 
{
    @Autowired
    private DiseaseRecordLogMapper diseaseRecordLogMapper;

    /**
     * 查询病人病情记录日志
     * 
     * @param logId 病人病情记录日志主键
     * @return 病人病情记录日志
     */
    @Override
    public DiseaseRecordLog selectDiseaseRecordLogByLogId(Long logId)
    {
        return diseaseRecordLogMapper.selectDiseaseRecordLogByLogId(logId);
    }

    /**
     * 查询病人病情记录日志列表
     * 
     * @param diseaseRecordLog 病人病情记录日志
     * @return 病人病情记录日志
     */
    @Override
    public List<DiseaseRecordLog> selectDiseaseRecordLogList(DiseaseRecordLog diseaseRecordLog)
    {
        return diseaseRecordLogMapper.selectDiseaseRecordLogList(diseaseRecordLog);
    }

    /**
     * 新增病人病情记录日志
     * 
     * @param diseaseRecordLog 病人病情记录日志
     * @return 结果
     */
    @Override
    public int insertDiseaseRecordLog(DiseaseRecordLog diseaseRecordLog)
    {
        return diseaseRecordLogMapper.insertDiseaseRecordLog(diseaseRecordLog);
    }

    /**
     * 修改病人病情记录日志
     * 
     * @param diseaseRecordLog 病人病情记录日志
     * @return 结果
     */
    @Override
    public int updateDiseaseRecordLog(DiseaseRecordLog diseaseRecordLog)
    {
        return diseaseRecordLogMapper.updateDiseaseRecordLog(diseaseRecordLog);
    }

    /**
     * 批量删除病人病情记录日志
     * 
     * @param logIds 需要删除的病人病情记录日志主键
     * @return 结果
     */
    @Override
    public int deleteDiseaseRecordLogByLogIds(Long[] logIds)
    {
        return diseaseRecordLogMapper.deleteDiseaseRecordLogByLogIds(logIds);
    }

    /**
     * 删除病人病情记录日志信息
     * 
     * @param logId 病人病情记录日志主键
     * @return 结果
     */
    @Override
    public int deleteDiseaseRecordLogByLogId(Long logId)
    {
        return diseaseRecordLogMapper.deleteDiseaseRecordLogByLogId(logId);
    }
}
